import { createApp } from "vue";
import { createPinia } from 'pinia'
import "./assets/css/index.css"; //导入公共基础样式
import router from "./router"; //导入/src/router/index.ts 路由
import ElementPlus from "element-plus"; //导入 ElementPlus 库
import "element-plus/dist/index.css"; //导入 ElementPlus 自带样式
import App from "./App.vue"; //创建 Vue 实例
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const app = createApp(App);
const pinia = createPinia()
import 'element-plus/dist/index.css'
//注册 router 路由
app.use(router);
//注册 ElementPlus 模块
app.use(ElementPlus);
pinia.use(piniaPluginPersistedstate);
app.use(pinia)
//挂载 Vue 实例
app.mount("#app");
